Calendar Widget
===============

To use this Calendar widget, import the definition file and then import the data 
into the DMS:CalendarData form.  Note the following:

1. The def file uses a few version 4.5.1 features (disable change flag, etc.).  If this stops 
you importing it onto a 4.0.2 or 4.0.3 server, let me know and I will produce a version
without these features.

2. The Calendar is designed to be opened as a dialog with values passed to the following
fields:
        Language
        InputDate

There is currently an active link which will fire if this form is opened in search or new 
mode to populate these fields with English as the language and the current date as the 
input date.  If the calendar is used as a dialog, hide the Language field and set to an 
appropriate value in the dialog On Open actions.

3. The Calendar data currently has weekday and month names for these languages:
      English
      French
      German
      Dutch
      Italian
      Spanish

To add more languages, simply add the extra language to the Language selection field in
both forms and create 20 records (7 days of the week, 13 months) in the DMS:CalendarData
form with the local language names.

4. The action performed when a date is clicked is currently to display a message showing
the date chosen.  This is the active link DMS:Cal_SelectedDateAction which fires on the 
hidden button click on GoSelectedDate.  To change what the calendar does, simply change
this single active link.

Next stages
===========

The next things to do to make this useful is to create a form for scheduled events, and to
use the GoSelectDate action open up a dialog with a table field showing events scheduled for
the date selected by person and time.  It might also be possible to change the date button
label colors on the calendar depending on whether events exist for a month when it is 
displayed.  This will involve a lot more active links!

I think this calendar will work with any database (it uses no direct SQL) and with any
date format in Regional settings.  If you have any problems, let me know.

David Sanders

24 November 2000

mail:  sandersd@globalnet.co.uk
web:   http://www.users.globalnet.co.uk/~sandersd

